package com.cqqec.boot.service;

import com.cqqec.boot.entity.Dish;
import com.cqqec.boot.util.PageUtil;

import java.util.List;

public interface DishService {
    //查询所有
    List<Dish> getAllDish();
    //分页查询
    PageUtil<Dish> getDishByLimit(int current, int size);
    //根据id查询
    Dish getDishById(int id);
    //修改
    int updateDish(Dish dish);
    //删除
    int deleteById(int id);
    // 添加
    int addDish(Dish dish);
    //修改状态
    int updateStatus(Dish dish);
}
